<?php
class template_listing extends theme
{

	protected function center()
	{
		$menu_id = request('menu_id', 0);
		$content_list = $this->get('content_list');
		?>

<h3 class="title"><?php echo $this->get_title(); ?></h3>

<ul>
<?php 
if(count($content_list))
{
	foreach($content_list as $content)
	{
		?>
		<li>
		<a href="<?php echo url('./?controller=content&task=detail&id='.$content->id.'&menu_id='.$menu_id ); ?>"><?php echo $content->title; ?></a>
		</li>
		<?php
	}
}
else
{
	echo '<li>没有记录</li>';
}
?>
</ul>

<p><?php $this->pagination(); ?></p>
		<?php
		
	}	

}
?>